90 #define XMC_I2S0_CH0 XMC_USIC0_CH0 91 #define XMC_I2S0_CH1 XMC_USIC0_CH1 95 #define XMC_I2S1_CH0 XMC_USIC1_CH0 96 #define XMC_I2S1_CH1 XMC_USIC1_CH1 100 #define XMC_I2S2_CH0 XMC_USIC2_CH0 101 #define XMC_I2S2_CH1 XMC_USIC2_CH1 207 #if UC_FAMILY == XMC1 208 XMC_I2S_CH_INPUT_DIN1 = 3UL,
209 XMC_I2S_CH_INPUT_DIN2 = 4UL,
210 XMC_I2S_CH_INPUT_DIN3 = 5UL
501 channel->
PSCR |= flag;
616 const uint8_t source)
703 const uint8_t service_request)
730 const uint32_t service_request)
733 (uint32_t)service_request);
__STATIC_INLINE void XMC_I2S_CH_DisableDataTransmission(XMC_USIC_CH_t *const channel)
__STATIC_INLINE void XMC_I2S_CH_SetFrameLength(XMC_USIC_CH_t *const channel, const uint8_t frame_length)
void XMC_I2S_CH_SetSystemWordLength(XMC_USIC_CH_t *const channel, uint32_t sclk_cycles_system_word_length)
enum XMC_USIC_CH_INPUT XMC_USIC_CH_INPUT_t
enum XMC_I2S_CH_BUS_MODE XMC_I2S_CH_BUS_MODE_t
Defines the I2S bus mode.
#define USIC_CH_PSR_IISMode_TSIF_Msk
__STATIC_INLINE void XMC_I2S_CH_SelectInterruptNodePointer(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_INTERRUPT_NODE_POINTER_t interrupt_node, const uint32_t service_request)
#define USIC_CH_PSR_IISMode_WAFE_Msk
#define USIC_CH_PSR_IISMode_DX2S_Msk
__STATIC_INLINE void XMC_USIC_CH_SetFrameLength(XMC_USIC_CH_t *const channel, const uint8_t frame_length)
__STATIC_INLINE void XMC_I2S_CH_Receive(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_CHANNEL_t channel_number)
__IO uint32_t PCR_IISMode
#define USIC_CH_PCR_IISMode_DX2TIEN_Msk
void XMC_USIC_CH_SetInterruptNodePointer(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_INTERRUPT_NODE_POINTER_t interrupt_node, const uint32_t service_request)
__STATIC_INLINE void XMC_USIC_CH_SetMode(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_OPERATING_MODE_t mode)
#define USIC_CH_PCR_IISMode_WAFEIEN_Msk
#define USIC_CH_PSR_IISMode_TBIF_Msk
__STATIC_INLINE void XMC_USIC_CH_ConfigureShiftClockOutput(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t passive_level, const XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_t clock_output)
enum XMC_I2S_CH_INPUT XMC_I2S_CH_INPUT_t
I2S input stage selection.
__STATIC_INLINE void XMC_USIC_CH_SetStartTransmisionMode(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_START_TRANSMISION_MODE_t start_transmision_mode)
__STATIC_INLINE void XMC_I2S_CH_SetInterruptNodePointer(XMC_USIC_CH_t *const channel, const uint8_t service_request)
__STATIC_INLINE void XMC_I2S_CH_ConfigureShiftClockOutput(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_BRG_SHIFT_CLOCK_OUTPUT_t clock_output)
__STATIC_INLINE void XMC_I2S_CH_EnableDataTransmission(XMC_USIC_CH_t *const channel)
#define USIC_CH_PCR_IISMode_SELINV_Pos
I2S_CH configuration structure.
XMC_I2S_CH_BRG_SHIFT_CLOCK_OUTPUT
I2S Baudrate Generator shift clock output.
enum XMC_I2S_CH_BRG_SHIFT_CLOCK_OUTPUT XMC_I2S_CH_BRG_SHIFT_CLOCK_OUTPUT_t
I2S Baudrate Generator shift clock output.
__STATIC_INLINE void XMC_I2S_CH_TriggerServiceRequest(XMC_USIC_CH_t *const channel, const uint32_t service_request_line)
XMC_I2S_CH_BUS_MODE_t bus_mode
__STATIC_INLINE void XMC_I2S_CH_SetInputSource(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_INPUT_t input, const uint8_t source)
#define USIC_CH_PSR_IISMode_WARE_Msk
#define USIC_CH_PCR_IISMode_ENDIEN_Msk
XMC_I2S_CH_BUS_MODE
Defines the I2S bus mode.
__STATIC_INLINE void XMC_USIC_CH_EnableInputInversion(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_INPUT_t input)
__STATIC_INLINE void XMC_I2S_CH_DisableDelayCompensation(XMC_USIC_CH_t *const channel)
__STATIC_INLINE void XMC_USIC_CH_SetWordLength(XMC_USIC_CH_t *const channel, const uint8_t word_length)
uint16_t XMC_I2S_CH_GetReceivedData(XMC_USIC_CH_t *const channel)
enum XMC_I2S_CH_EVENT XMC_I2S_CH_EVENT_t
I2S events.
#define USIC_CH_CCR_BRGIEN_Msk
__STATIC_INLINE void XMC_USIC_CH_TriggerServiceRequest(XMC_USIC_CH_t *const channel, const uint32_t service_request_line)
__STATIC_INLINE void XMC_I2S_CH_Start(XMC_USIC_CH_t *const channel)
XMC_I2S_CH_STATUS
I2S Status.
enum XMC_USIC_CH_INTERRUPT_NODE_POINTER XMC_USIC_CH_INTERRUPT_NODE_POINTER_t
enum XMC_I2S_CH_WA_POLARITY XMC_I2S_CH_WA_POLARITY_t
Defines the Polarity of the WA in the SELO output lines in relation to the internal WA signal...
__STATIC_INLINE void XMC_I2S_CH_DisableMasterClock(XMC_USIC_CH_t *const channel)
__STATIC_INLINE void XMC_USIC_CH_EnableDelayCompensation(XMC_USIC_CH_t *const channel)
#define USIC_CH_PSR_IISMode_DX2TEV_Msk
void XMC_I2S_CH_DisableEvent(XMC_USIC_CH_t *const channel, const uint32_t event)
#define USIC_CH_DX0CR_DSEN_Msk
#define USIC_CH_CCR_DLIEN_Msk
#define USIC_CH_PSR_IISMode_BRGIF_Msk
#define USIC_CH_PSR_IISMode_RIF_Msk
#define USIC_CH_PSR_IISMode_AIF_Msk
#define USIC_CH_CCR_TSIEN_Msk
XMC_I2S_CH_STATUS_FLAG
I2S status flag.
enum XMC_I2S_CH_STATUS XMC_I2S_CH_STATUS_t
I2S Status.
void XMC_I2S_CH_Transmit(XMC_USIC_CH_t *const channel, const uint16_t data, const XMC_I2S_CH_CHANNEL_t channel_number)
#define USIC_CH_CCR_RSIEN_Msk
enum XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t
__STATIC_INLINE void XMC_I2S_CH_EnableDelayCompensation(XMC_USIC_CH_t *const channel)
__STATIC_INLINE void XMC_I2S_CH_EnableMasterClock(XMC_USIC_CH_t *const channel)
#define USIC_CH_CCR_AIEN_Msk
XMC_I2S_CH_STATUS_t XMC_I2S_CH_Stop(XMC_USIC_CH_t *const channel)
#define USIC_CH_DX0CR_INSW_Msk
XMC_I2S_CH_WA_POLARITY
Defines the Polarity of the WA in the SELO output lines in relation to the internal WA signal...
#define USIC_CH_PCR_IISMode_WAREIEN_Msk
__STATIC_INLINE void XMC_USIC_CH_DisableInputInversion(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_INPUT_t input)
#define USIC_CH_CCR_TBIEN_Msk
__STATIC_INLINE void XMC_I2S_CH_ClearStatusFlag(XMC_USIC_CH_t *const channel, const uint32_t flag)
__STATIC_INLINE uint32_t XMC_I2S_CH_GetStatusFlag(XMC_USIC_CH_t *const channel)
enum XMC_I2S_CH_STATUS_FLAG XMC_I2S_CH_STATUS_FLAG_t
I2S status flag.
#define USIC_CH_PCR_IISMode_MCLK_Msk
struct XMC_I2S_CH_CONFIG XMC_I2S_CH_CONFIG_t
I2S_CH configuration structure.
#define USIC_CH_PSR_IISMode_WA_Msk
XMC_I2S_CH_INPUT
I2S input stage selection.
__IO uint32_t PSR_IISMode
enum XMC_I2S_CH_INTERRUPT_NODE_POINTER XMC_I2S_CH_INTERRUPT_NODE_POINTER_t
I2S channel interrupt node pointers.
XMC_I2S_CH_EVENT
I2S events.
enum XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_t
XMC_I2S_CH_STATUS_t XMC_I2S_CH_SetBaudrate(XMC_USIC_CH_t *const channel, const uint32_t rate)
#define USIC_CH_PSR_IISMode_DLIF_Msk
XMC_I2S_CH_INTERRUPT_NODE_POINTER
I2S channel interrupt node pointers.
#define USIC_CH_SCTR_SDIR_Msk
__STATIC_INLINE void XMC_USIC_CH_SetInputSource(XMC_USIC_CH_t *const channel, const XMC_USIC_CH_INPUT_t input, const uint8_t source)
__STATIC_INLINE void XMC_I2S_CH_EnableInputInversion(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_INPUT_t input)
#define USIC_CH_CCR_RIEN_Msk
__STATIC_INLINE void XMC_I2S_CH_SetBitOrderMsbFirst(XMC_USIC_CH_t *const channel)
XMC_I2S_CH_CHANNEL
Defines the Polarity of the WA in the SELO output lines in relation to the internal WA signal...
uint8_t data_delayed_sclk_periods
void XMC_I2S_CH_EnableEvent(XMC_USIC_CH_t *const channel, const uint32_t event)
__STATIC_INLINE void XMC_I2S_CH_WordAddressSignalPolarity(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_WA_POLARITY_t wa_inversion)
enum XMC_I2S_CH_CHANNEL XMC_I2S_CH_CHANNEL_t
Defines the Polarity of the WA in the SELO output lines in relation to the internal WA signal...
void XMC_I2S_CH_Init(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_CONFIG_t *const config)
__STATIC_INLINE void XMC_USIC_CH_DisableDelayCompensation(XMC_USIC_CH_t *const channel)
#define USIC_CH_PCR_IISMode_SELINV_Msk
__STATIC_INLINE void XMC_I2S_CH_SetBitOrderLsbFirst(XMC_USIC_CH_t *const channel)
__STATIC_INLINE void XMC_I2S_CH_DisableInputInversion(XMC_USIC_CH_t *const channel, const XMC_I2S_CH_INPUT_t input)
#define USIC_CH_PSR_IISMode_END_Msk
#define USIC_CH_PSR_IISMode_RSIF_Msk
__STATIC_INLINE void XMC_I2S_CH_SetWordLength(XMC_USIC_CH_t *const channel, const uint8_t word_length)
XMC_I2S_CH_WA_POLARITY_t wa_inversion